unit Unit3; 

{$mode objfpc}{$H+}

interface

uses
  Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
  StdCtrls, ExtCtrls, Unit1;

type

  { TForm3 }

  TForm3 = class(TForm)
    Button1: TButton;
    Image1: TImage;
    Label1: TLabel;
    procedure Button1Click(Sender: TObject);
    procedure FormResize(Sender: TObject);
  private
    { private declarations }
  public
    { public declarations }
  end; 

var
  Form3: TForm3; 

implementation

{ TForm3 }

procedure TForm3.Button1Click(Sender: TObject);
begin
  Form3.Close;
end;

procedure TForm3.FormResize(Sender: TObject);
begin
Form3.Height:=145;
  Form3.Width:=468;
  Form3.Left:=round((Form1.Width/2)+Form1.Left);
  Form3.Top:=round((Form1.Height/2)+Form1.Top);
end;

initialization
  {$I Unit3.lrs}

end.

